package 组合模式;

public class TextFile extends AbstractFile {
    private String fileName;

    public TextFile(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public void display() {
        System.out.println("-----------"+getFileName()+"----------------");
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
}
